﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Communication;

namespace Clipper.EngineerWindow
{
    /// <summary>
    /// UserIncubationAdjust.xaml 的交互逻辑
    /// </summary>
    public partial class UserIncubationAdjust : UserControl
    {
        public UserIncubationAdjust()
        {
            InitializeComponent();
        }
        short mCanID = 0x61;
        string mEnd = "/r";//结束符
        /// <summary>
        /// 调试说明
        /// </summary>
        public string Text
        {
            get
            {
                return textAdjustText.Text;
            }
            set
            {
                textAdjustText.Text = value;
            }
        }

        public int Number
        {
            get
            {
                return txtNumber.Number;
            }
            set
            {
                txtNumber.Number = value;
            }
        }
        /// <summary>
        /// 微调命令
        /// </summary>
        public string AdjustCmd
        {
            get;
            set;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Can.SendCan(mCanID, 1 +AdjustCmd+txtNumber.Text + mEnd);
        }
        
    }
}
